package com.cloudeasy.provider.annotation;

import com.cloudeasy.provider.model.enums.DelayLevelEnum;
import com.cloudeasy.provider.model.enums.MqOrderTypeEnum;
import com.cloudeasy.provider.model.enums.MqSendTypeEnum;

import java.lang.annotation.*;

/**
 * 保存生产者消息
 * Create By 郭金宝 on 2019/1/14.<br>
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface MqProducerStore {
    MqSendTypeEnum sendType() default MqSendTypeEnum.WAIT_CONFIRM;

    MqOrderTypeEnum orderType() default MqOrderTypeEnum.ORDER;

    DelayLevelEnum delayLevel() default DelayLevelEnum.ZERO;
}

